import axios from "@/api/http";
// @ts-ignore
import qs from 'qs'

const formalList = (params: any = {}) => {
    return axios.post('/server/specialist/formalList', params)
}
const infoById=(params:any={})=>{
    return  axios.post('/server/specialist/infoById',qs.stringify(params))
}
const infoByUsername=(params:any={})=>{
    return  axios.post('/server/specialist/infoByUsername',qs.stringify(params))
}
const agreeByUsername=(params:any={})=>{
    return axios.post('/server/specialist/agreeByUsername',qs.stringify(params))
}

const disAgreeByUsername=(params:any={})=>{
    return axios.post('/server/specialist/disAgreeByUsername',qs.stringify(params))
}
export default {
    formalList,
    agreeByUsername,
    disAgreeByUsername,
    infoById,
    infoByUsername
}
